import QtQuick 2.0
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import "../mainmenu"

Item {

    MainmenuItem{ id: label
        imagepath: qsTr("../../images/programdate.png")
        content: qsTr("程序数据-已用数据类型")
        height: 30
        anchors{
            top: parent.top; left: parent.left; right: parent.right
        }
    }

    Rectangle{ id: menu
        height: 50
        color: "gray"
        anchors{
            bottom: parent.bottom; left: parent.left; right: parent.right
        }
    }

    //中间部件
    Rectangle{

        Column{
            //从列表中选择一个数据类型。
            Text {
                height: 50
                id: explain
                text: qsTr("从列表中选择一个数据类型。")
                font.pixelSize: 20
                verticalAlignment: Text.AlignVCenter
                anchors{
                    top: parent.top; left: parent.left; right: parent.right
                }
            }

            //范围
            Row{
                height: 40;
                spacing: -2
                InstructItem{
                    width: parent.width*11/15; height: parent.height
                    bordercolor: "black"; borderwidth: 1
                    textHLocate: 0; textVLocate: 1
                    textname: qsTr("范围：RAPID/T_ROB1");
                }
                Button{
                    width: parent.width*4/15; height: parent.height
                    text: qsTr("更改范围")
                }

                anchors{
                    top: explain.bottom; left: explain.left; right: explain.right
                }
            }

            anchors.fill: parent
        }

        anchors{
            top: label.bottom; left: label.left; right: label.right; bottom: menu.top
        }
    }
}
